package com.simtop.car.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

import java.util.Date;

/**
 * 信息来源（新闻）
 */
@Data
public class News extends BaseRowModel {
    @ExcelIgnore
    private Integer newsId;//编号

    @ExcelProperty(index = 0, value = "标题")
    private String headline;//标题

    @ExcelProperty(index = 1, value = "正文")
    private String mainBody;//正文

    @ExcelProperty(index = 2, value = "发表时间,日期格式")
    private Date postedTime;//发表时间

    @ExcelProperty(index = 3, value = "作者")
    private String author;//作者

    @ExcelProperty(index = 4, value = "媒体来源")
    private String mediaSources;//媒体来源

    @ExcelProperty(index = 5, value = "栏目")
    private String columns;//栏目

    @ExcelProperty(index = 6, value = "版面")
    private String layout;//版面

    @ExcelProperty(index = 7, value = "采集时间,日期格式")
    private Date acquisitionTime;//采集时间

    @ExcelProperty(index = 8, value = "更新时间,日期格式")
    private Date turnoverTime;//更新时间

    @ExcelProperty(index = 9, value = "删除时间,日期格式")
    private Date deleteTime;//删除时间

    @ExcelProperty(index = 10, value = "来源（即新闻）")
    private String source;//来源（即新闻）

    @ExcelProperty(index = 11,value ="车企简称" )
    private String carProduct;//汽车品牌


    @ColumnWidth(value = 80)
    @ExcelProperty(index = 12,value ="日期（时间）格式必须设置为yyyy-mm-dd hh:mm:ss" )
    private String dateFormat;//日期格式

    @ExcelIgnore
    private Integer newsSourceId;


    @ExcelIgnore
    private Integer userId;

}
